<?php

/**
 *
 *
 * @version $Id: act.inc.php,v 1.5 2004/08/21 13:43:23 phppc Exp $
 * @copyright 2004
 **/

if ($_GET["act"] == "do") {
	$_GET = $this->uf_secure($_GET);
	$valid = $this->db_anzahl_zeilen("SELECT id FROM ".$this->config["db_table_user"]." WHERE id=\"".$_GET["uid"]."\" AND act_key=\"".$_GET["act_key"]."\"");
    if ($valid == 1) {
        $this->db_abfrage_q("UPDATE ".$this->config["db_table_user"]." SET act_key=\"\" WHERE id=\"".$_GET["uid"]."\"");
		$this->message_green[] = 143;
		$this->w_leitung["url"] = $this->fun_make_link("","nc_action=login");
		$this->w_leitung["number"] = 5;
    }else {
		$this->message_red[] = 95;
		$this->w_leitung["url"] = $this->fun_make_link("","");
		$this->w_leitung["number"] = 6;
	}
}

?>